package demo10;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
 class Student {
    private String name;
    private int age;
    private String studentId;
}
class Teacher {
    private String name;
    private String subject;
    private String teacherId;
}
public class School {
    private String name;
    private List<Teacher> teachers;  // 组合Teacher
    private List<Student> students;  // 组合Student
}